package com.bt.table.ppt;

/**
 * Spc_bis_chart_mainId entity. @author MyEclipse Persistence Tools
 */

public class Spc_bis_chart_mainId implements java.io.Serializable {

	// Fields

	private String col_typ_fk;
	private String grp_no_fk;
	private String chart_no;

	// Constructors

	/** default constructor */
	public Spc_bis_chart_mainId() {
	}

	/** full constructor */
	public Spc_bis_chart_mainId(String col_typ_fk, String grp_no_fk,
			String chart_no) {
		this.col_typ_fk = col_typ_fk;
		this.grp_no_fk = grp_no_fk;
		this.chart_no = chart_no;
	}

	// Property accessors

	public String getCol_typ_fk() {
		return this.col_typ_fk;
	}

	public void setCol_typ_fk(String col_typ_fk) {
		this.col_typ_fk = col_typ_fk;
	}

	public String getGrp_no_fk() {
		return this.grp_no_fk;
	}

	public void setGrp_no_fk(String grp_no_fk) {
		this.grp_no_fk = grp_no_fk;
	}

	public String getChart_no() {
		return this.chart_no;
	}

	public void setChart_no(String chart_no) {
		this.chart_no = chart_no;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Spc_bis_chart_mainId))
			return false;
		Spc_bis_chart_mainId castOther = (Spc_bis_chart_mainId) other;

		return ((this.getCol_typ_fk() == castOther.getCol_typ_fk()) || (this
				.getCol_typ_fk() != null && castOther.getCol_typ_fk() != null && this
				.getCol_typ_fk().equals(castOther.getCol_typ_fk())))
				&& ((this.getGrp_no_fk() == castOther.getGrp_no_fk()) || (this
						.getGrp_no_fk() != null
						&& castOther.getGrp_no_fk() != null && this
						.getGrp_no_fk().equals(castOther.getGrp_no_fk())))
				&& ((this.getChart_no() == castOther.getChart_no()) || (this
						.getChart_no() != null
						&& castOther.getChart_no() != null && this
						.getChart_no().equals(castOther.getChart_no())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getCol_typ_fk() == null ? 0 : this.getCol_typ_fk()
						.hashCode());
		result = 37 * result
				+ (getGrp_no_fk() == null ? 0 : this.getGrp_no_fk().hashCode());
		result = 37 * result
				+ (getChart_no() == null ? 0 : this.getChart_no().hashCode());
		return result;
	}

}